global.focus_manager.add_group(this.rightClickMenu);
},
+ get closeButtonVisible() {
+ return this._closeButton.visible;
+ },
+
+ set closeButtonVisible(v) {
+ this._closeButton.visible = v;
+ },
+
prepareNotificationStackForShowing: function() {
if (this.notificationStack.get_n_children() > 0)
return;
this._appendNotificationToStack(this.source.notifications[i]);
}
- this.notificationStackWidget.width = this.notificationStackView.width;
this.scrollTo(St.Side.BOTTOM);
},
this._notificationQueue = newQueue;
this._summaryBoxPointer.bin.child = this._summaryBoxPointerItem.notificationStackWidget;
+ this._summaryBoxPointerItem.closeButtonVisible = true;
this._summaryBoxPointerItem.prepareNotificationStackForShowing();
} else if (this._clickedSummaryItemMouseButton == 3) {
this._summaryBoxPointer.bin.child = this._clickedSummaryItem.rightClickMenu;
};
if (obj.resident) {
+ this._residentNotificationBox.add(item.notificationStackWidget);
+ item.closeButtonVisible = false;
item.prepareNotificationStackForShowing();
- this._residentNotificationBox.add(item.notificationStackView);
} else {
[obj.sourceBox, obj.countLabel] = this._makeNotificationSource(item.source);
this._persistentNotificationBox.add(obj.sourceBox, { x_fill: false, x_align: St.Align.MIDDLE });
if (obj.resident && !itemShouldBeResident) {
// make into a regular item
- this._residentNotificationBox.remove_actor(obj.item.notificationStackView);
+ obj.item.doneShowingNotificationStack();
+ this._residentNotificationBox.remove_actor(obj.item.notificationStackWidget);
[obj.sourceBox, obj.countLabel] = this._makeNotificationSource(obj.source);
this._persistentNotificationBox.add(obj.sourceBox);
obj.sourceBox = obj.countLabel = null;
obj.resident = true;
+ this._residentNotificationBox.add(obj.item.notificationStackWidget);
+ obj.item.closeButtonVisible = false;
obj.item.prepareNotificationStackForShowing();
- this._residentNotificationBox.add(obj.item.notificationStackView);
} else {
// just update the counter
let count = obj.source.unseenCount;
_removeItem: function(obj) {
if (obj.resident) {
- this._residentNotificationBox.remove_actor(obj.item.notificationStackView);
obj.item.doneShowingNotificationStack();
+ this._residentNotificationBox.remove_actor(obj.item.notificationStackWidget);
} else {
obj.sourceBox.destroy();
}